<?php

/**
 * Evenement filter form.
 *
 * @package    tfe
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class EvenementFormFilter extends BaseEvenementFormFilter
{
  public function configure()
  {
        parent::configure();
        foreach ($this->widgetSchema->getFields() as $name => $widget) {
          if ($widget->getOption('empty_label')) {
            $widget->setOption('empty_label', 'vide');
          }
        }

        $this->widgetSchema['date']->setOption('template', "Du %from_date% au %to_date%");
        $this->widgetSchema['created_at']->setOption('template', 'Du %from_date% au %to_date%');
        $this->widgetSchema['updated_at']->setOption('template', 'Du %from_date% au %to_date%');
  }
}
